package com.actionscriptclass.state
{
	import com.actionscriptclass.timer.TimerInvoker;
 
	public class Pause implements IState 
	{
	    private var _state:SetState;
	    private var _timer:TimerInvoker;
			 
		public function Pause( state:SetState,timer:TimerInvoker)
		{
			_state=state;	
		   	_timer=timer;
		}
		
		public function start():void
		{
		   _state.setState(_state.getStart());
           _timer.start();
		}
		
		public function stop():void 
		{
		    _state.setState(_state.getStop());
	        _timer.stop();
		}
		
		public function loop(loopNumber:uint=1):void
		{
			_state.setState(_state.getLoop());
           _timer.loop(loopNumber);
		}
		
       public function pause():void
		{
			//do nothing
		}
	}
}